<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>单位工程信息详情</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="../../../favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="../../../static/css/font.css">
    <link rel="stylesheet" href="../../../static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="../../../static/css/buildUnit/common.css">
    <style>
        .v-table td .layui-colla-title {
            position: relative;
            height: 42px;
            line-height: 42px;
            padding: 0 15px 0 35px;
            color: #333;
            background-color: #f2f2f2;
            cursor: pointer;
            font-size: 14px;
            overflow: hidden;
        }

        tr:hover {
            background-color: initial !important;
        }

        body {
            overflow-y: auto;
        }

        .attachmentListSjDj, .attachmentListKcDj {
            margin-top: -25px;
        }

        iframe {
            height: 200px;
        }

        .content.dt .kc, .content.dt .sj {
            display: none;
        }

        .content.kcSj .dt, .content.kcSj .xm {
            display: none;
        }
    </style>
</head>
<body>
<div class="content" id="view"></div>
<script type="text/html" id="templateId">
    <div class="layui-collapse" lay-filter="acceptCollapse">
        <div class="layui-colla-item xm">
            <h2 class="layui-colla-title">项目信息</h2>
            <div class="layui-colla-content layui-show">
                <table class="layui-table v-table">
                    <colgroup>
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                        <col width="24%">
                        <col>
                        <col>
                    </colgroup>
                    <tbody>
                    <tr>
                        <td class="th8">建设项目名称</td>
                        <td colspan="5">{{d.projectInfo.mainProjName||''}}</td>
                    </tr>
                    <tr>
                        <td class="th8">建设项目类别</td>
                        <td colspan="2">{{d.projectInfo.projType||''}}</td>
                        <td class="th8">项目用途类别</td>
                        <td colspan="2">{{d.projectInfo.useType||''}}</td>
                    </tr>
                    <tr>
                        <td class="th8">项目建设规模</td>
                        <td colspan="2">{{d.projectInfo.buildScale||''}}</td>
                        <td class="th8">项目建设性质</td>
                        <td colspan="2">{{d.projectInfo.buildType||''}}</td>
                    </tr>
                    <tr>
                        <td class="th8">项目建设模式</td>
                        <td colspan="5">{{d.projectInfo.buildMode||''}}</td>
                    </tr>
                    <tr>
                        <td class="th8">计划开工日期</td>
                        <td colspan="2">
                            {{d.projectInfo.planStartDate||''}}
                        </td>
                        <td class="th8">计划竣工日期</td>
                        <td colspan="2  ">
                            {{d.projectInfo.planEndDate||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">施工面积(平方米)/长度(米)</td>
                        <td colspan="5">
                            {{d.projectInfo.totalArea||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">项目内容描述</td>
                        <td colspan="5">
                            {{d.projectInfo.descriptionContent||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">项目所属区划</td>
                        <td colspan="5">
                            {{d.projectInfo.country||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">项目建设地址</td>
                        <td colspan="5">
                            {{d.projectInfo.address||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">地图标识信息</td>
                        <td colspan="5">
                            {{(d.projectInfo.projLon&&d.projectInfo.projLon!=='')?'经度：'+d.projectInfo.projLon:''}}{{(d.projectInfo.projLon&&d.projectInfo.projLat!=='')?',纬度：'+d.projectInfo.projLat+'':''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">项目资金来源</td>
                        <td colspan="5">
                            投资额（万元）：{{d.projectInfo.projAmt||''}}
                        </td>
                    </tr>
                    <tr>
                        <td class="th8">建设项目概况</td>
                        <td colspan="5">
                            {{d.projectInfo.description||''}}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="layui-colla-item dt">
            <h2 class="layui-colla-title">单位工程信息</h2>
            <div class="layui-colla-content layui-show">
                <table class="layui-table v-table">
                    <colgroup>
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                        <col width="24%">
                        <col>
                        <col>
                    </colgroup>
                    <tbody>
                    <tr>
                        <td class="th8">单位工程名称</td>
                        <td colspan="2">{{ d.singleProjectInfo.singleProjectName || '-'}}</td>
                        <td class="th8">单位工程编号</td>
                        <td colspan="2">{{ d.singleProjectInfo.auditNumber || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">建设单位名称</td>
                        <td colspan="2">{{ d.singleProjectInfo.devUnitName || '-'}}</td>
                        <td class="th8">建设单位负责人</td>
                        <td colspan="2">{{ d.singleProjectInfo.devUnitManager || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">负责人联系手机</td>
                        <td colspan="2">{{ d.singleProjectInfo.devUnitManagerPhone || '-'}}</td>
                        <td class="th8">负责人联系邮箱</td>
                        <td colspan="2">{{ d.singleProjectInfo.devUnitManagerMail || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">工程专业类别</td>
                        <td colspan="5">
                            <div><b>{{d.singleProjectInfo.projectMajorType.typeName||''}}</b></div>
                            <table class="layui-table v-table" style="margin:0;max-width:640px;">
                                <colgroup>
                                    <col>
                                    <col>
                                    <col>
                                    <col>
                                    <col>
                                </colgroup>
                                <tbody>
                                {{# layui.each(d.singleProjectInfo.projectMajorType.majors,function(index, item){ }}
                                <tr>
                                    <td class="th8" style="width:80px;">{{ item.typeName || '-'}}</td>
                                    <td colspan="4">{{ item.desc || '-'}}</td>
                                </tr>
                                {{# });}}
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    <tr style="">
                        <td class="th8">单位工程勘察等级</td>
                        <td colspan="2">{{ d.singleProjectInfo.surveyGrade || '-'}}</td>
                        <td class="th8">投资额</td>
                        <td colspan="2">{{ d.singleProjectInfo.money+' 万元' || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">单位工程行政区划</td>
                        <td colspan="5">{{d.singleProjectInfo.singleProjectDivision || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">单位工程地址</td>
                        <td colspan="5">{{d.singleProjectInfo.singleAddress || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">工程经纬度</td>
                        <td colspan="5">{{ d.singleProjectInfo.latitude || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">单位工程内容描述</td>
                        <td colspan="5">{{ d.singleProjectInfo.singleProjectContent || '-'}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        {{# if(dwShow.kc){ }}
        <div class="layui-colla-item kc">
            <h2 class="layui-colla-title">勘察单位信息</h2>
            <div class="layui-colla-content layui-show">
                <table class="layui-table v-table">
                    <colgroup>
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                    </colgroup>
                    <tbody>
                    <tr>
                        <td class="th8">勘察单位名称</td>
                        <td colspan="2" width="26%;">{{ d.surveyUnitInfo.surveyProjectName || '-'}}</td>
                        <td class="th8">勘察报告编号</td>
                        <td colspan="2">{{ d.surveyUnitInfo.surveyReportNumber || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">勘察单位资质</td>
                        <td colspan="5">
                            {{ d.dwRes.kcRecvOrgAptitudeInfo ? JSON.parse(d.dwRes.kcRecvOrgAptitudeInfo).aptName : '-'}}
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="layui-card">
                    <div class="layui-card-header">人员信息</div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <colgroup>
                                <col>
                                <col>
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>
                                    工程担任角色
                                </th>
                                <th>
                                    所属专业
                                </th>
                                <th>
                                    人员姓名
                                </th>
                                <th>
                                    人员证书信息
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                {{# if(d.dwRes.kcRecvOrgLeaderInfo){ }}
                                <td>勘察项目负责人</td>
                                <td>勘察</td>
                                <td>{{ JSON.parse(d.dwRes.kcRecvOrgLeaderInfo).staffName}}</td>
                                <td>{{getZsInfo(JSON.parse(d.dwRes.kcRecvOrgLeaderInfo))}}</td>
                                {{# } }}
                            </tr>
                            {{# if(d.dwRes.kcRecvOrgKeyPersonInfo){
                            layui.each(JSON.parse(d.dwRes.kcRecvOrgKeyPersonInfo), function(index, item){ }}
                            <tr>
                                <td>{{configureCom.getJsName('kcPersonPost',item.roleType)}}</td>
                                <td>{{item.specTypeName||'-'}}</td>
                                <td>{{item.staffName}}</td>
                                <td>{{getZsInfo(item)}}</td>
                            </tr>
                            {{# });} }}
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="layui-card" style="">
                    <div class="layui-card-header">勘察附件信息</div>
                    <div class="layui-card-body">
                        <iframe src="{{d.filesInfo.kcCjFjUrl}}" frameborder="0" scrolling="no"
                                class="attachmentListKcCj"
                                name="attachmentListKcCj"
                                style="" id="attachmentListKcCj"></iframe>
                        <iframe src="{{d.filesInfo.kcDjFjUrl}}" frameborder="0" scrolling="no"
                                class="attachmentListKcDj"
                                name="attachmentListKcDj"
                                style=""></iframe>
                    </div>
                </div>
            </div>
        </div>
        {{# } if(dwShow.sj){ }}
        <div class="layui-colla-item sj">
            <h2 class="layui-colla-title">设计单位信息</h2>
            <div class="layui-colla-content layui-show">
                <table class="layui-table v-table">
                    <colgroup>
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                        <col width="24%">
                        <col width="13%">
                        <col width="13%">
                    </colgroup>
                    <tbody>
                    <tr>
                        <td class="th8">设计单位名称</td>
                        <td colspan="2">{{ d.designUnitInfo.designProjectName || '-'}}</td>
                        <td class="th8">设计报告编号</td>
                        <td colspan="2">{{ d.designUnitInfo.designReportNumber || '-'}}</td>
                    </tr>
                    <tr>
                        <td class="th8">设计单位资质</td>
                        <td colspan="5">{{ d.dwRes.sjRecvOrgAptitudeInfo ?
                            JSON.parse(d.dwRes.sjRecvOrgAptitudeInfo).aptName : '-'}}
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="layui-card">
                    <div class="layui-card-header">人员信息</div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <colgroup>
                                <col>
                                <col>
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>
                                    工程担任角色
                                </th>
                                <th>
                                    所属专业
                                </th>
                                <th>
                                    人员姓名
                                </th>
                                <th>
                                    人员证书信息
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                {{# if(d.dwRes.sjRecvOrgLeaderInfo){ }}
                                <td>设计项目负责人</td>
                                <td>设计</td>
                                <td>{{ JSON.parse(d.dwRes.sjRecvOrgLeaderInfo).staffName}}</td>
                                <td>{{getZsInfo(JSON.parse(d.dwRes.sjRecvOrgLeaderInfo))}}</td>
                                {{# } }}
                            </tr>
                            {{# if(d.dwRes.sjRecvOrgKeyPersonInfo){
                            layui.each(JSON.parse(d.dwRes.sjRecvOrgKeyPersonInfo), function(index, item){ }}
                            <tr>
                                <td>{{configureCom.getJsName('sjPersonPost',item.roleType)}}</td>
                                <td>{{item.specTypeName||'-'}}</td>
                                <td>{{item.staffName}}</td>
                                <td>{{getZsInfo(item)}}</td>
                            </tr>
                            {{# });} }}
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="layui-card-header">设计附件信息</div>
                    <div class="layui-card-body">
                        <iframe src="{{d.filesInfo.sjCjFjUrl}}" frameborder="0" scrolling="no"
                                class="attachmentListSjCj"
                                name="attachmentListSjCj"
                                style=""></iframe>
                        <iframe src="{{d.filesInfo.sjDjFjUrl}}" frameborder="0" scrolling="no"
                                class="attachmentListSjDj"
                                name="attachmentListSjDj"
                                style=""></iframe>
                    </div>
                </div>
            </div>
        </div>
        {{# } }}
    </div>
</script>
<script src="../../../static/js/main.js"></script>
<script type="text/javascript">
    layui.use(['permission', 'bluebird', 'singleProjectInfoDetail', 'configureCom', 'configure'], function () {
        var component = layui.singleProjectInfoDetail;
        window.configureCom = layui.configureCom;
        window.configure = layui.configure;
        window.$ = layui.jquery;
        window.jQuery = layui.jquery;

        window.getZsInfo = function (data) {
            if (!data) {
                return ''
            }
            var cartType = data.regCertType ? configureCom.getJsName('regCertificate', data.regCertType) : configureCom.getJsName('titCertificate', data.titleType) || data.staffEducation;;
            var cartNo = data.regCertNo || data.titleNo || data.eduNo;
            return cartType + '（证书编号：' + cartNo + ')';
        };

        component.render();

        window.resetIframeH = function (name, h) {
            $('iframe[name=' + name + ']').css('min-height', h + 'px');
            if (parent.bsData && parent.bsData.length > 0) {
                var parentH = $('.layui-collapse').height() + 40;
                parent.resetIframeH(window.name, parentH);
            }
        };

        window.showParam = function (type) {//显示详情的部分
            $('.content').attr('class', 'content ' + type);
        };
    });
</script>
</body>
</html>